#!/bin/sh

set -e # all commands must not fail

if [ -f /usr/local/environment ]  ; then
	source /usr/local/environment
else
	echo "could not find the smartcard 2.0 environment file"
	exit
fi

currdir=`pwd`

if [ ! -f $currdir/change-jboss-logging-to-info.patch ] ;then
	echo "could not find $currdir/change-jboss-logging-to-info.patch"
	exit -1
fi

cd ${JBOSS_HOME}/server/default/conf
patch --forward --batch -p0  < $currdir/change-jboss-logging-to-info.patch

